package com.ruoyi.announcement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公司公告对象 announcement
 * 
 * @author ruoyi
 * @date 2024-06-29
 */
public class Announcement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公告标识 */
    private Long announcementId;

    /** 公告标题 */
    @Excel(name = "公告标题")
    private String title;

    /** 公告内容 */
    @Excel(name = "公告内容")
    private String content;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdDate;

    /** 到期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiryDate;

    /** 公告是否生效 */
    @Excel(name = "公告是否生效")
    private Boolean isActive;

    public void setAnnouncementId(Long AnnouncementId) 
    {
        this.announcementId = AnnouncementId;
    }

    public Long getAnnouncementId() 
    {
        return announcementId;
    }
    public void setTitle(String Title) 
    {
        this.title = Title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String Content) 
    {
        this.content = Content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCreatedDate(Date CreatedDate) 
    {
        this.createdDate = CreatedDate;
    }

    public Date getCreatedDate() 
    {
        return createdDate;
    }
    public void setExpiryDate(Date ExpiryDate) 
    {
        this.expiryDate = ExpiryDate;
    }

    public Date getExpiryDate() 
    {
        return expiryDate;
    }
    public void setIsActive(Boolean IsActive) 
    {
        this.isActive = IsActive;
    }

    public Boolean getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("announcementId", getAnnouncementId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("createdDate", getCreatedDate())
            .append("expiryDate", getExpiryDate())
            .append("isActive", getIsActive())
            .toString();
    }
}
